package com.kazimsoylu;

import net.sf.jml.MsnContact;
import net.sf.jml.MsnSwitchboard;

public class Contact 
{
	private MsnContact contact;
	private MsnSwitchboard switchboard;
	
	public Contact()
	{
		
	}
	
	public Contact( MsnContact contact, MsnSwitchboard switchboard )
	{
		this.contact = contact;
		this.switchboard=switchboard;
	}
	
	public MsnContact getContact() {
		return contact;
	}
	public void setContact(MsnContact contact) {
		this.contact = contact;
	}
	public MsnSwitchboard getSwitchboard() {
		return switchboard;
	}
	public void setSwitchboard(MsnSwitchboard switchboard) {
		this.switchboard = switchboard;
	}
	
	public boolean equals( Object o )
	{
		if( this.contact.getId().contentEquals( ((MsnContact)o ).getId() ))
			return true;
		return false;
	}

}
